<?php
class test extends IController
{
    public function di()
    {
        $this->redirect('di');
    }
    public function bigfile()
    {
       $file=$_FILES['sliceFile'];
       //print_r($file);
        $tmp_name=$file['tmp_name'];
       $sliceNo=$_POST['sliceNo'];
       $blob_count=$_POST['blob_count'];
       $filename=$_POST['filename'];
       $this->movesliceFile($tmp_name,$filename,$sliceNo);
    }
     public function movesliceFile($tmp_name,$filename,$sliceNo)
{
    for ($i=1;$i<=$sliceNo;$i++)
    {
        $destination='upload/video/'.$filename."_".$i;
    }
    move_uploaded_file($tmp_name,$destination);
}
    public  function qq_login()
    {
        $appid='101353491';			// APPID
        $appkey='df4e46ba7da52f787c6e3336d30526e4';			// APPKEY
        $redirect_uri='http://www.iwebshop.com/index.php';		// 回调地址
        $state=rand(1000,9999);
        $url=" https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=$appid&redirect_uri=$redirect_uri&state=$state ";
        header("Location:$url");

    }
}

?>